package cn.xq.pethome.sysDicTail.service.impl;

import cn.xq.pethome.sysDicTail.mapper.DicTailMapper;
import cn.xq.pethome.sysDicTail.domain.DicTail;
import cn.xq.pethome.sysDicTail.query.DicTailQuery;
import cn.xq.pethome.sysDicTail.service.LDicTailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class DicTailService  implements LDicTailService {
    @Autowired
    private DicTailMapper dicTailMapper;
    @Transactional
    @Override
    public void insert(DicTail dicTail) {
        dicTailMapper.insert(dicTail);
    }

    @Transactional
    @Override
    public void delete(Long id) {
        dicTailMapper.delete(id);
    }
    @Transactional
    @Override
    public void update(DicTail dicTail) {
        dicTailMapper.update(dicTail);
    }


    @Override
    public DicTail findone(Long id) {
        return dicTailMapper.fingone(id);
    }

    @Override
    public List<DicTail> findquery(DicTailQuery dicTailQuery) {
        return dicTailMapper.findquery(dicTailQuery);
    }


}
